numToByte
Type
function
Summary
Returns the byte corresponding to a numeric value in the range 0-255.
Syntax
the numToByte of <numericValue>
numToByte(<numericValue>)
Description
Use the byteToNum function to translate numbers into their byte equivalents, or to interpret a byte (such as a control character) that can't be displayed.
The numToByte function is the inverse of the byteToNum function.
Parameters
Name | Type | Description |
---|---|---|
numericValue | An integer between zero and 255, or an expression that evaluates to such an integer. |
Examples
numToByte(65) -- returns a byte with numeric value 65
numToByte(0) -- returns a byte with numeric value 0
Related
function: uniEncode, binaryEncode, byteToNum, charToNum, base64Encode, macToISO, toUpper, ISOToMac, toLower, binaryDecode
property: extendKey, charSet, HTMLText, useUnicode
Compatibility and Support
Introduced
LiveCode 4.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile